package handler

import (
	"encoding/json"
	"net/http"

	"gitee.com/infraboard/go-share-examples/mvc-project/model"
	"github.com/julienschmidt/httprouter"
)

// Handler 流程
func CreateProduct(w http.ResponseWriter, r *http.Request, _ httprouter.Params) {
	// db.Scan()
	ins := &model.Product{}
	jbytes, _ := json.Marshal(ins)
	w.Write(jbytes)
	// dao.Order()
}
